#ifndef __SHOP_SCENE_H__
#define __SHOP_SCENE_H__

#include "cocos2d.h"
#include "GUI/CCScrollView/CCTableView.h"

using namespace cocos2d;
using namespace cocos2d::extension;

class ShopScene : public cocos2d::CCLayer, public CCTableViewDelegate, public CCTableViewDataSource
{
public:
    virtual bool init();
    static cocos2d::CCScene* scene();
    
    virtual void tableCellTouched(CCTableView* table, CCTableViewCell* cell);
    
    virtual void scrollViewDidScroll(CCScrollView* view){}
    virtual void scrollViewDidZoom(CCScrollView* view){}
    
    virtual CCSize cellSizeForTable(CCTableView *table) {return CCSizeMake(500, 100);}
    virtual CCTableViewCell* tableCellAtIndex(CCTableView *table, unsigned int idx);
    virtual unsigned int numberOfCellsInTableView(CCTableView *table);
    
    void enterLobbyCallback(CCObject* pSender);
    
    CREATE_FUNC(ShopScene);
    
};

#endif